package com.vframework.system.operatelog.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vframework.base.exception.BaseException;
import com.vframework.base.service.impl.BaseServiceImpl;
import com.vframework.system.operatelog.mapper.OperateLogMapper;
import com.vframework.system.operatelog.model.OperateLogBean;
import com.vframework.system.operatelog.service.OperateLogService;

@Service
public class OperateLogServiceImpl extends BaseServiceImpl implements OperateLogService {

    @Autowired
    private OperateLogMapper logMapper;
    
	@Override
	public List<OperateLogBean> queryOperateLogList(Map<String, Object> map) throws BaseException {
	    return logMapper.operateLogList(map);
	}

	@Override
	public int queryOperateLogCount(Map<String, Object> map)
			throws BaseException {
	    return logMapper.operateLogCount(map);
	}

	@Override
	public int clearOperateLog(String orgId) throws BaseException {
	    return logMapper.clearOperateLog(orgId);
	}
}
